<script>
  export default {
    props: ['vueName', 'src', 'data'],
    data () {
      return {}
    },
    created () {
      this.$options.components[this.vueName] = resolve => require.ensure([], () => resolve(require('../../../views/modules/' + this.src + '.vue')))
    },
    render: function (createElement) {
      console.log({props: this.data})
      return createElement(this.vueName, {props: this.data})
    }
  }
</script>